Skip to content

Conversation

@oliverabrahams
Copy link
Contributor

@oliverabrahams oliverabrahams commented Oct 29, 2025

Co-authored-by: Charley_Campbell [email protected]

Co-authored-by: Emma Imber [email protected]

What does this change?

  • Adds ProductElement component and corresponding story
  • Updates schemas to add Product block element
  • Adds Product Element to renderElement code
  • Updates H2 enhancer to handle Product element headings
  • Adds Product element enhancer and uses it in `enhanceBlocks
  • Adds Product element types to content

Why?

We have added a new Product element in Composer, which needs to be handled in the rendering layer. The point of this element is to provide a way of structuring product data in Filter articles. This structured data will unlock more design opportunities on Filter pages. Some more details are here if you're interested.

image

Screenshots

Screenshots are taken using our test article in CAPI CODE

Wide breakpoint

Screenshot 2025-10-30 at 11 56 01

Mobile

Screenshot 2025-10-30 at 11 56 29 Screenshot 2025-10-30 at 11 56 45

… colours for the product cards. Add the Product Card image component. Add the correct sizing to the Picture component for the new Product Image.
@oliverabrahams oliverabrahams changed the base branch from main to mob/product-cards October 29, 2025 17:47
@github-actions
Copy link

github-actions bot commented Oct 30, 2025

# Conflicts:
#	dotcom-rendering/src/types/content.ts
@github-actions
Copy link

github-actions bot commented Oct 30, 2025

@oliverabrahams oliverabrahams marked this pull request as ready for review October 30, 2025 12:57
@github-actions
Copy link

Hello 👋! When you're ready to run Chromatic, please apply the run_chromatic label to this PR.

You will need to reapply the label each time you want to run Chromatic.

Click here to see the Chromatic project.

@oliverabrahams oliverabrahams requested a review from a team October 30, 2025 14:36
@oliverabrahams oliverabrahams added the run_chromatic Runs chromatic when label is applied label Nov 10, 2025
@github-actions github-actions bot removed the run_chromatic Runs chromatic when label is applied label Nov 10, 2025
Copy link
Contributor

@JamieB-gu JamieB-gu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! One point about star-ratings, but that can be updated later as @oliverabrahams mentions.

@oliverabrahams oliverabrahams added the run_chromatic Runs chromatic when label is applied label Nov 10, 2025
@github-actions github-actions bot removed the run_chromatic Runs chromatic when label is applied label Nov 10, 2025
@oliverabrahams oliverabrahams added the run_chromatic Runs chromatic when label is applied label Nov 10, 2025
@github-actions github-actions bot removed the run_chromatic Runs chromatic when label is applied label Nov 10, 2025
@oliverabrahams oliverabrahams merged commit 3bff594 into main Nov 10, 2025
31 checks passed
@oliverabrahams oliverabrahams deleted the mob/product-element branch November 10, 2025 15:50
@gu-prout
Copy link

gu-prout bot commented Nov 10, 2025

Seen on PROD (merged by @oliverabrahams 8 minutes and 58 seconds ago) Please check your changes!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants